package cn.xej.demo.service.impl;

import cn.xej.demo.condition.annotation.RealService;
import cn.xej.demo.service.AppleService;

import javax.annotation.PostConstruct;

/**
 * @Author alicat.xu
 * @Date 2021/11/13 9:29 下午
 */
@RealService("appleService")
public class AppleServiceImpl implements AppleService {

    static {
        System.out.println("static apple");
    }

    @Override
    public String getPrice() {
        System.out.println("apple实现类");
        return "123";
    }

    @PostConstruct
    public void init(){
        System.out.println("初始化apple实现类");
    }
}
